<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : estimation_saleList.jsp
    Description : 판매조건
    author SJYoon
    since 2012. 6. 25.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 25.     SJYoon     최초 생성
--%>

                                        <ul class="check-list">
                                            <c:set var="t" scope="page" value="1"></c:set>
                                            <c:set var="a" scope="page" value="1"></c:set>
                                            <c:set var="cnt" scope="page" value="" />
                                            <c:forEach var="result" items="${saleList }" varStatus="status">
                                            
                                                <c:if test="${result.dcntGb == 'A' && a == '1'}" >
                                                    <li>
                                                        <label><input type="checkbox" class="check" name="saleA" id="saleA" value="<c:out value="${result.dcntAmt}"/>" onclick="saleOpens('<c:out value="${result.dcntNm }"/>','<c:out value="${result.dcntAmt}"/>');" /> <c:out value="${result.dcntNm }"/></label>
                                                        <p class="price"><c:set var="dca" value="${result.dcntAmt * 10000}"/><fmt:formatNumber type="NUMBER"  groupingUsed="true"><c:out value="${dca}"/></fmt:formatNumber>원</p>
                                                    </li>    
                                                    <c:set var="a" scope="page" value="${a+1 }"></c:set>
                                                </c:if>
                                                <c:if test="${result.dcntGb == 'E' }" >
                                                    
                                                    <c:if test="${t == '1' }"><li class="brd-sect"></c:if>
                                                    <c:if test="${t != '1' }"><li></c:if>
                                                    
                                                        <c:if test="${result.chcnt == cnt || cnt == '' }">
                                                        
                                                        <c:if test="${t == '1' }">
                                                        <label><input type="radio" class="check" name="saleN" id="saleN" value="<c:out value="${result.dcntAmt}"/>" checked="checked" onclick="saleOpen('<c:out value="${result.dcntNm }"/>','<c:out value="${result.dcntAmt }"/>');" /> <c:out value="${result.dcntNm }"/></label>
                                                        </c:if>
                                                        <c:if test="${t != '1' }">
                                                        <label><input type="radio" class="check" name="saleN" id="saleN" value="<c:out value="${result.dcntAmt}"/>" onclick="saleOpen('<c:out value="${result.dcntNm }"/>','<c:out value="${result.dcntAmt }"/>');" /> <c:out value="${result.dcntNm }"/></label>
                                                        <c:set var="cnt" value="${result.chcnt }" scope="page" />
                                                        </c:if>
                                                        <c:if test="${t == '1' }"><!-- <a href="#" class="layer-control"><img src="/kr/images/common/button/btn_caution.gif" alt="주의사항" class="caution" /></a> --></c:if>
                                                        </c:if>
                                                        
                                                    </li>
                                                    <c:set var="t" scope="page" value="${t+1 }"></c:set>
                                                </c:if>
                                            
                                            </c:forEach>
                                            
                                        </ul>
                                        
                                        